const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    '/apis',
    createProxyMiddleware({
      target: 'https://www.fastmock.site/mock/15da00ab03e11e1b86bddab85c3a6581',
      changeOrigin: true,
    })
  );
  app.use(
    '/api',
    createProxyMiddleware({
      // target: 'http://10.232.5.10:30913/', //dev
      // target: 'http://10.244.27.150:8083/', //冯一軒本地
      target: 'http://10.244.27.70:8081', //张÷景阳本地
      // target: 'http://10.244.27.122:8081', //李光本地
      changeOrigin: true,
    })
  );
};
